<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "https://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/xhtml;charset=UTF-8"/>
<meta http-equiv="X-UA-Compatible" content="IE=9"/>
<meta name="generator" content="Doxygen 1.8.15"/>
<meta name="viewport" content="width=device-width, initial-scale=1"/>
<title>tvs_sdk_api: tvs_alert_adapter.h 文件参考</title>
<link href="tabs.css" rel="stylesheet" type="text/css"/>
<script type="text/javascript" src="jquery.js"></script>
<script type="text/javascript" src="dynsections.js"></script>
<link href="navtree.css" rel="stylesheet" type="text/css"/>
<script type="text/javascript" src="resize.js"></script>
<script type="text/javascript" src="navtreedata.js"></script>
<script type="text/javascript" src="navtree.js"></script>
<script type="text/javascript">
/* @license magnet:?xt=urn:btih:cf05388f2679ee054f2beb29a391d25f4e673ac3&amp;dn=gpl-2.0.txt GPL-v2 */
  $(document).ready(initResizable);
/* @license-end */</script>
<link href="search/search.css" rel="stylesheet" type="text/css"/>
<script type="text/javascript" src="search/searchdata.js"></script>
<script type="text/javascript" src="search/search.js"></script>
<link href="doxygen.css" rel="stylesheet" type="text/css" />
</head>
<body>
<div id="top"><!-- do not remove this div, it is closed by doxygen! -->
<div id="titlearea">
<table cellspacing="0" cellpadding="0">
 <tbody>
 <tr style="height: 56px;">
  <td id="projectalign" style="padding-left: 0.5em;">
   <div id="projectname">tvs_sdk_api
   </div>
  </td>
 </tr>
 </tbody>
</table>
</div>
<!-- end header part -->
<!-- 制作者 Doxygen 1.8.15 -->
<script type="text/javascript">
/* @license magnet:?xt=urn:btih:cf05388f2679ee054f2beb29a391d25f4e673ac3&amp;dn=gpl-2.0.txt GPL-v2 */
var searchBox = new SearchBox("searchBox", "search",false,'搜索');
/* @license-end */
</script>
<script type="text/javascript" src="menudata.js"></script>
<script type="text/javascript" src="menu.js"></script>
<script type="text/javascript">
/* @license magnet:?xt=urn:btih:cf05388f2679ee054f2beb29a391d25f4e673ac3&amp;dn=gpl-2.0.txt GPL-v2 */
$(function() {
  initMenu('',true,false,'search.php','搜索');
  $(document).ready(function() { init_search(); });
});
/* @license-end */</script>
<div id="main-nav"></div>
</div><!-- top -->
<div id="side-nav" class="ui-resizable side-nav-resizable">
  <div id="nav-tree">
    <div id="nav-tree-contents">
      <div id="nav-sync" class="sync"></div>
    </div>
  </div>
  <div id="splitbar" style="-moz-user-select:none;" 
       class="ui-resizable-handle">
  </div>
</div>
<script type="text/javascript">
/* @license magnet:?xt=urn:btih:cf05388f2679ee054f2beb29a391d25f4e673ac3&amp;dn=gpl-2.0.txt GPL-v2 */
$(document).ready(function(){initNavTree('tvs__alert__adapter_8h.html','');});
/* @license-end */
</script>
<div id="doc-content">
<!-- window showing the filter options -->
<div id="MSearchSelectWindow"
     onmouseover="return searchBox.OnSearchSelectShow()"
     onmouseout="return searchBox.OnSearchSelectHide()"
     onkeydown="return searchBox.OnSearchSelectKey(event)">
</div>

<!-- iframe showing the search results (closed by default) -->
<div id="MSearchResultsWindow">
<iframe src="javascript:void(0)" frameborder="0" 
        name="MSearchResults" id="MSearchResults">
</iframe>
</div>

<div class="header">
  <div class="summary">
<a href="#nested-classes">结构体</a> &#124;
<a href="#define-members">宏定义</a> &#124;
<a href="#typedef-members">类型定义</a> &#124;
<a href="#enum-members">枚举</a> &#124;
<a href="#func-members">函数</a>  </div>
  <div class="headertitle">
<div class="title">tvs_alert_adapter.h 文件参考</div>  </div>
</div><!--header-->
<div class="contents">

<p>TVS 闹钟适配接口层  
<a href="#details">更多...</a></p>
<div class="textblock"><div class="dynheader">
此图展示该文件直接或间接的被哪些文件引用了:</div>
<div class="dyncontent">
<div class="center"><img src="tvs__alert__adapter_8h__dep__incl.png" border="0" usemap="#tvs__alert__adapter_8hdep" alt=""/></div>
</div>
</div>
<p><a href="tvs__alert__adapter_8h_source.html">浏览源代码.</a></p>
<table class="memberdecls">
<tr class="heading"><td colspan="2"><h2 class="groupheader"><a name="nested-classes"></a>
结构体</h2></td></tr>
<tr class="memitem:"><td class="memItemLeft" align="right" valign="top">struct &#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="structtvs__alert__infos.html">tvs_alert_infos</a></td></tr>
<tr class="memdesc:"><td class="mdescLeft">&#160;</td><td class="mdescRight">闹钟的详细信息  <a href="structtvs__alert__infos.html#details">更多...</a><br /></td></tr>
<tr class="separator:"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:"><td class="memItemLeft" align="right" valign="top">struct &#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="structtvs__alert__summary.html">tvs_alert_summary</a></td></tr>
<tr class="memdesc:"><td class="mdescLeft">&#160;</td><td class="mdescRight">闹钟概要信息  <a href="structtvs__alert__summary.html#details">更多...</a><br /></td></tr>
<tr class="separator:"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:"><td class="memItemLeft" align="right" valign="top">struct &#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="structtvs__alert__adapter.html">tvs_alert_adapter</a></td></tr>
<tr class="separator:"><td class="memSeparator" colspan="2">&#160;</td></tr>
</table><table class="memberdecls">
<tr class="heading"><td colspan="2"><h2 class="groupheader"><a name="define-members"></a>
宏定义</h2></td></tr>
<tr class="memitem:a1854ab39dea40b3c232faf051d938335"><td class="memItemLeft" align="right" valign="top"><a id="a1854ab39dea40b3c232faf051d938335"></a>
#define&#160;</td><td class="memItemRight" valign="bottom"><b>TVS_ALERTS_TYPE_MAX</b>&#160;&#160;&#160;32</td></tr>
<tr class="separator:a1854ab39dea40b3c232faf051d938335"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a9a6fa2ce9d096ef3314bbc76a4252ae0"><td class="memItemLeft" align="right" valign="top"><a id="a9a6fa2ce9d096ef3314bbc76a4252ae0"></a>
#define&#160;</td><td class="memItemRight" valign="bottom"><b>TVS_ALERTS_TIME_MAX</b>&#160;&#160;&#160;64</td></tr>
<tr class="separator:a9a6fa2ce9d096ef3314bbc76a4252ae0"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:ae62d38235b59edc5d878f79b8ac1471a"><td class="memItemLeft" align="right" valign="top"><a id="ae62d38235b59edc5d878f79b8ac1471a"></a>
#define&#160;</td><td class="memItemRight" valign="bottom"><b>TVS_ALERTS_TOKEN_MAX</b>&#160;&#160;&#160;255</td></tr>
<tr class="separator:ae62d38235b59edc5d878f79b8ac1471a"><td class="memSeparator" colspan="2">&#160;</td></tr>
</table><table class="memberdecls">
<tr class="heading"><td colspan="2"><h2 class="groupheader"><a name="typedef-members"></a>
类型定义</h2></td></tr>
<tr class="memitem:a68fcfa2101a28520a2341dc4e8a5ff35"><td class="memItemLeft" align="right" valign="top">typedef int(*&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="tvs__alert__adapter_8h.html#a68fcfa2101a28520a2341dc4e8a5ff35">tvs_alert_adapter_new</a>) (<a class="el" href="structtvs__alert__infos.html">tvs_alert_infos</a> *alerts, int alert_count)</td></tr>
<tr class="memdesc:a68fcfa2101a28520a2341dc4e8a5ff35"><td class="mdescLeft">&#160;</td><td class="mdescRight">实现此接口，赋予SDK新增闹钟的能力  <a href="#a68fcfa2101a28520a2341dc4e8a5ff35">更多...</a><br /></td></tr>
<tr class="separator:a68fcfa2101a28520a2341dc4e8a5ff35"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:abda91d00843e17c88257b35e21a9c5ff"><td class="memItemLeft" align="right" valign="top">typedef int(*&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="tvs__alert__adapter_8h.html#abda91d00843e17c88257b35e21a9c5ff">tvs_alert_adapter_delete</a>) (<a class="el" href="structtvs__alert__summary.html">tvs_alert_summary</a> *alerts, int alert_count)</td></tr>
<tr class="memdesc:abda91d00843e17c88257b35e21a9c5ff"><td class="mdescLeft">&#160;</td><td class="mdescRight">实现此接口，赋予SDK删除闹钟的能力  <a href="#abda91d00843e17c88257b35e21a9c5ff">更多...</a><br /></td></tr>
<tr class="separator:abda91d00843e17c88257b35e21a9c5ff"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a4ca22716d5b7d26839c720e5deb1e0d5"><td class="memItemLeft" align="right" valign="top">typedef <a class="el" href="structtvs__alert__summary.html">tvs_alert_summary</a> *(*&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="tvs__alert__adapter_8h.html#a4ca22716d5b7d26839c720e5deb1e0d5">tvs_alert_adapter_get_all_alerts</a>) (int *count)</td></tr>
<tr class="memdesc:a4ca22716d5b7d26839c720e5deb1e0d5"><td class="mdescLeft">&#160;</td><td class="mdescRight">实现此接口，赋予SDK获取闹钟概要信息的能力  <a href="#a4ca22716d5b7d26839c720e5deb1e0d5">更多...</a><br /></td></tr>
<tr class="separator:a4ca22716d5b7d26839c720e5deb1e0d5"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a796116758f23b4fcb8a7feb3dd1ddd15"><td class="memItemLeft" align="right" valign="top">typedef void *(*&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="tvs__alert__adapter_8h.html#a796116758f23b4fcb8a7feb3dd1ddd15">tvs_alert_adater_get_all_alerts_ex</a>) ()</td></tr>
<tr class="memdesc:a796116758f23b4fcb8a7feb3dd1ddd15"><td class="mdescLeft">&#160;</td><td class="mdescRight">实现此接口，赋予SDK获取闹钟概要信息的能力,扩展接口。 如果实现了本接口，tvs_alert_adapter_get_all_alerts将不会被调用  <a href="#a796116758f23b4fcb8a7feb3dd1ddd15">更多...</a><br /></td></tr>
<tr class="separator:a796116758f23b4fcb8a7feb3dd1ddd15"><td class="memSeparator" colspan="2">&#160;</td></tr>
</table><table class="memberdecls">
<tr class="heading"><td colspan="2"><h2 class="groupheader"><a name="enum-members"></a>
枚举</h2></td></tr>
<tr class="memitem:af682ff904f9812bc8be9dfe95c030e81"><td class="memItemLeft" align="right" valign="top">enum &#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="tvs__alert__adapter_8h.html#af682ff904f9812bc8be9dfe95c030e81">tvs_alert_stop_reason</a> { <a class="el" href="tvs__alert__adapter_8h.html#af682ff904f9812bc8be9dfe95c030e81af27fa43e35dfbcd6b8f10ea43b4ebd84">TVS_ALART_STOP_REASON_NEW_RECO</a>, 
<a class="el" href="tvs__alert__adapter_8h.html#af682ff904f9812bc8be9dfe95c030e81a4c03d4ec8d95a579485ec4f23705ba52">TVS_ALART_STOP_REASON_TIMEOUT</a>, 
<a class="el" href="tvs__alert__adapter_8h.html#af682ff904f9812bc8be9dfe95c030e81a3a6b67319af63c5a0fe746e7630d6383">TVS_ALART_STOP_REASON_MANNUAL</a>
 }</td></tr>
<tr class="memdesc:af682ff904f9812bc8be9dfe95c030e81"><td class="mdescLeft">&#160;</td><td class="mdescRight">闹钟触发振铃后，停止的原因  <a href="tvs__alert__adapter_8h.html#af682ff904f9812bc8be9dfe95c030e81">更多...</a><br /></td></tr>
<tr class="separator:af682ff904f9812bc8be9dfe95c030e81"><td class="memSeparator" colspan="2">&#160;</td></tr>
</table><table class="memberdecls">
<tr class="heading"><td colspan="2"><h2 class="groupheader"><a name="func-members"></a>
函数</h2></td></tr>
<tr class="memitem:a888dd36a95f93c0e3ddd4ef9e651cfc7"><td class="memItemLeft" align="right" valign="top">int&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="tvs__alert__adapter_8h.html#a888dd36a95f93c0e3ddd4ef9e651cfc7">tvs_alert_adapter_init</a> (<a class="el" href="structtvs__alert__adapter.html">tvs_alert_adapter</a> *adapter)</td></tr>
<tr class="memdesc:a888dd36a95f93c0e3ddd4ef9e651cfc7"><td class="mdescLeft">&#160;</td><td class="mdescRight">初始化  <a href="#a888dd36a95f93c0e3ddd4ef9e651cfc7">更多...</a><br /></td></tr>
<tr class="separator:a888dd36a95f93c0e3ddd4ef9e651cfc7"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a903a0625af623c97a0ef3a9e326f2b5e"><td class="memItemLeft" align="right" valign="top">int&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="tvs__alert__adapter_8h.html#a903a0625af623c97a0ef3a9e326f2b5e">tvs_alert_adapter_on_trigger</a> (const char *alert_token)</td></tr>
<tr class="memdesc:a903a0625af623c97a0ef3a9e326f2b5e"><td class="mdescLeft">&#160;</td><td class="mdescRight">在闹钟到时开始振铃的时候，调用此函数通知SDK  <a href="#a903a0625af623c97a0ef3a9e326f2b5e">更多...</a><br /></td></tr>
<tr class="separator:a903a0625af623c97a0ef3a9e326f2b5e"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a8c5deba654cdbdc1c813071dc78ab9cd"><td class="memItemLeft" align="right" valign="top">int&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="tvs__alert__adapter_8h.html#a8c5deba654cdbdc1c813071dc78ab9cd">tvs_alert_adapter_on_trigger_stop</a> (const char *alert_token, <a class="el" href="tvs__alert__adapter_8h.html#af682ff904f9812bc8be9dfe95c030e81">tvs_alert_stop_reason</a> reason)</td></tr>
<tr class="memdesc:a8c5deba654cdbdc1c813071dc78ab9cd"><td class="mdescLeft">&#160;</td><td class="mdescRight">在闹钟到时触发振铃之后，在结束的时候，调用此函数通知SDK  <a href="#a8c5deba654cdbdc1c813071dc78ab9cd">更多...</a><br /></td></tr>
<tr class="separator:a8c5deba654cdbdc1c813071dc78ab9cd"><td class="memSeparator" colspan="2">&#160;</td></tr>
</table>
<a name="details" id="details"></a><h2 class="groupheader">详细描述</h2>
<div class="textblock"><p>TVS 闹钟适配接口层 </p>
<dl class="section date"><dt>日期</dt><dd>2019-5-10 </dd></dl>
</div><h2 class="groupheader">类型定义说明</h2>
<a id="abda91d00843e17c88257b35e21a9c5ff"></a>
<h2 class="memtitle"><span class="permalink"><a href="#abda91d00843e17c88257b35e21a9c5ff">&#9670;&nbsp;</a></span>tvs_alert_adapter_delete</h2>

<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">typedef int(* tvs_alert_adapter_delete) (<a class="el" href="structtvs__alert__summary.html">tvs_alert_summary</a> *alerts, int alert_count)</td>
        </tr>
      </table>
</div><div class="memdoc">

<p>实现此接口，赋予SDK删除闹钟的能力 </p>
<dl class="params"><dt>参数</dt><dd>
  <table class="params">
    <tr><td class="paramname">alerts</td><td>待删除闹钟概要，可以根据alert_token删除指定闹钟 </td></tr>
    <tr><td class="paramname">alert_count</td><td>待删除闹钟的个数 </td></tr>
  </table>
  </dd>
</dl>
<dl class="section return"><dt>返回</dt><dd>0为删除闹钟成功，其他值为失败 </dd></dl>

</div>
</div>
<a id="a4ca22716d5b7d26839c720e5deb1e0d5"></a>
<h2 class="memtitle"><span class="permalink"><a href="#a4ca22716d5b7d26839c720e5deb1e0d5">&#9670;&nbsp;</a></span>tvs_alert_adapter_get_all_alerts</h2>

<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">typedef <a class="el" href="structtvs__alert__summary.html">tvs_alert_summary</a>*(* tvs_alert_adapter_get_all_alerts) (int *count)</td>
        </tr>
      </table>
</div><div class="memdoc">

<p>实现此接口，赋予SDK获取闹钟概要信息的能力 </p>
<dl class="params"><dt>参数</dt><dd>
  <table class="params">
    <tr><td class="paramname">count</td><td>出参，闹钟的个数 </td></tr>
  </table>
  </dd>
</dl>
<dl class="section return"><dt>返回</dt><dd>当前系统闹钟概要信息的集合 </dd></dl>

</div>
</div>
<a id="a68fcfa2101a28520a2341dc4e8a5ff35"></a>
<h2 class="memtitle"><span class="permalink"><a href="#a68fcfa2101a28520a2341dc4e8a5ff35">&#9670;&nbsp;</a></span>tvs_alert_adapter_new</h2>

<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">typedef int(* tvs_alert_adapter_new) (<a class="el" href="structtvs__alert__infos.html">tvs_alert_infos</a> *alerts, int alert_count)</td>
        </tr>
      </table>
</div><div class="memdoc">

<p>实现此接口，赋予SDK新增闹钟的能力 </p>
<dl class="params"><dt>参数</dt><dd>
  <table class="params">
    <tr><td class="paramname">alerts</td><td>闹钟详情 </td></tr>
    <tr><td class="paramname">alert_count</td><td>闹钟的个数 </td></tr>
  </table>
  </dd>
</dl>
<dl class="section return"><dt>返回</dt><dd>0为添加闹钟成功，其他值为失败 </dd></dl>

</div>
</div>
<a id="a796116758f23b4fcb8a7feb3dd1ddd15"></a>
<h2 class="memtitle"><span class="permalink"><a href="#a796116758f23b4fcb8a7feb3dd1ddd15">&#9670;&nbsp;</a></span>tvs_alert_adater_get_all_alerts_ex</h2>

<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">typedef void*(* tvs_alert_adater_get_all_alerts_ex) ()</td>
        </tr>
      </table>
</div><div class="memdoc">

<p>实现此接口，赋予SDK获取闹钟概要信息的能力,扩展接口。 如果实现了本接口，tvs_alert_adapter_get_all_alerts将不会被调用 </p>
<dl class="section return"><dt>返回</dt><dd>当前系统闹钟概要信息的集合，是一个cJSON* </dd></dl>

</div>
</div>
<h2 class="groupheader">枚举类型说明</h2>
<a id="af682ff904f9812bc8be9dfe95c030e81"></a>
<h2 class="memtitle"><span class="permalink"><a href="#af682ff904f9812bc8be9dfe95c030e81">&#9670;&nbsp;</a></span>tvs_alert_stop_reason</h2>

<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">enum <a class="el" href="tvs__alert__adapter_8h.html#af682ff904f9812bc8be9dfe95c030e81">tvs_alert_stop_reason</a></td>
        </tr>
      </table>
</div><div class="memdoc">

<p>闹钟触发振铃后，停止的原因 </p>
<table class="fieldtable">
<tr><th colspan="2">枚举值</th></tr><tr><td class="fieldname"><a id="af682ff904f9812bc8be9dfe95c030e81af27fa43e35dfbcd6b8f10ea43b4ebd84"></a>TVS_ALART_STOP_REASON_NEW_RECO&#160;</td><td class="fielddoc"><p>点击录音按钮导致闹钟振铃停止 </p>
</td></tr>
<tr><td class="fieldname"><a id="af682ff904f9812bc8be9dfe95c030e81a4c03d4ec8d95a579485ec4f23705ba52"></a>TVS_ALART_STOP_REASON_TIMEOUT&#160;</td><td class="fielddoc"><p>闹钟振铃超时停止 </p>
</td></tr>
<tr><td class="fieldname"><a id="af682ff904f9812bc8be9dfe95c030e81a3a6b67319af63c5a0fe746e7630d6383"></a>TVS_ALART_STOP_REASON_MANNUAL&#160;</td><td class="fielddoc"><p>用户手动停止 </p>
</td></tr>
</table>

</div>
</div>
<h2 class="groupheader">函数说明</h2>
<a id="a888dd36a95f93c0e3ddd4ef9e651cfc7"></a>
<h2 class="memtitle"><span class="permalink"><a href="#a888dd36a95f93c0e3ddd4ef9e651cfc7">&#9670;&nbsp;</a></span>tvs_alert_adapter_init()</h2>

<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">int tvs_alert_adapter_init </td>
          <td>(</td>
          <td class="paramtype"><a class="el" href="structtvs__alert__adapter.html">tvs_alert_adapter</a> *&#160;</td>
          <td class="paramname"><em>adapter</em></td><td>)</td>
          <td></td>
        </tr>
      </table>
</div><div class="memdoc">

<p>初始化 </p>
<dl class="params"><dt>参数</dt><dd>
  <table class="params">
    <tr><td class="paramname"></td><td></td></tr>
  </table>
  </dd>
</dl>

</div>
</div>
<a id="a903a0625af623c97a0ef3a9e326f2b5e"></a>
<h2 class="memtitle"><span class="permalink"><a href="#a903a0625af623c97a0ef3a9e326f2b5e">&#9670;&nbsp;</a></span>tvs_alert_adapter_on_trigger()</h2>

<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">int tvs_alert_adapter_on_trigger </td>
          <td>(</td>
          <td class="paramtype">const char *&#160;</td>
          <td class="paramname"><em>alert_token</em></td><td>)</td>
          <td></td>
        </tr>
      </table>
</div><div class="memdoc">

<p>在闹钟到时开始振铃的时候，调用此函数通知SDK </p>
<dl class="params"><dt>参数</dt><dd>
  <table class="params">
    <tr><td class="paramname">alert_token</td><td>当前触发的闹钟token </td></tr>
  </table>
  </dd>
</dl>
<dl class="section return"><dt>返回</dt><dd>0为成功，其他值为失败 </dd></dl>

</div>
</div>
<a id="a8c5deba654cdbdc1c813071dc78ab9cd"></a>
<h2 class="memtitle"><span class="permalink"><a href="#a8c5deba654cdbdc1c813071dc78ab9cd">&#9670;&nbsp;</a></span>tvs_alert_adapter_on_trigger_stop()</h2>

<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">int tvs_alert_adapter_on_trigger_stop </td>
          <td>(</td>
          <td class="paramtype">const char *&#160;</td>
          <td class="paramname"><em>alert_token</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype"><a class="el" href="tvs__alert__adapter_8h.html#af682ff904f9812bc8be9dfe95c030e81">tvs_alert_stop_reason</a>&#160;</td>
          <td class="paramname"><em>reason</em>&#160;</td>
        </tr>
        <tr>
          <td></td>
          <td>)</td>
          <td></td><td></td>
        </tr>
      </table>
</div><div class="memdoc">

<p>在闹钟到时触发振铃之后，在结束的时候，调用此函数通知SDK </p>
<dl class="params"><dt>参数</dt><dd>
  <table class="params">
    <tr><td class="paramname">alert_token</td><td>当前触发停止的闹钟token </td></tr>
    <tr><td class="paramname">reason</td><td>停止原因 </td></tr>
  </table>
  </dd>
</dl>
<dl class="section return"><dt>返回</dt><dd>0为成功，其他值为失败 </dd></dl>

</div>
</div>
</div><!-- contents -->
</div><!-- doc-content -->
<!-- start footer part -->
<div id="nav-path" class="navpath"><!-- id is needed for treeview function! -->
  <ul>
    <li class="navelem"><a class="el" href="tvs__alert__adapter_8h.html">tvs_alert_adapter.h</a></li>
    <li class="footer">制作者
    <a href="http://www.doxygen.org/index.html">
    <img class="footer" src="doxygen.png" alt="doxygen"/></a> 1.8.15 </li>
  </ul>
</div>
</body>
</html>
